package cn.wsh.user.mapper;

import cn.wsh.user.domain.User;
import cn.wsh.basic.mapper.BaseMapper;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author wushenghua
 * @since 2022-02-14
 */
public interface UserMapper extends BaseMapper<User> {
    /**
     *
     * @param phone 查询手机号是否被注册
     * @return
     */
    User loadByPhone(String phone);

    /**
     *
     * @param id 根据logininfoID查询用户
     * @return
     */
    User loadUserByLogininfoId(Long id);
}
